#ifndef _READ_CONF_H_
#define _READ_CONF_H_

#include <iostream>
#include <sstream>
#include <string>
using namespace std;

struct conf_schema
{
	string name;
	string host;
	string user;
	string password;
};

typedef conf_schema conf_keyword_schema;
typedef conf_schema conf_url_schema;
typedef conf_schema conf_pending_schema;
typedef conf_schema conf_invalid_schema;
typedef conf_schema conf_dict_schema;

struct configure
{
	string name;
	string ver;
	
	conf_keyword_schema keyword;
	conf_url_schema url;
	conf_pending_schema pending;
	conf_invalid_schema invalid;
	conf_dict_schema dict;
	
	int download_threads;
	int keyword_threads;
    int url_threads;
    int pending_threads;
    int invalid_threads;
    int dict_threads;
};

int read_conf(const char* conf_file, configure& conf);



#endif
